package cn.mw.cmdb.entity;

import cn.mw.components.mongodb.anno.AutoId;
import cn.mw.components.mongodb.anno.CMDBProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

@Data
@Document("mw_cmdbmd_unum_init")
public class V6800InitDataInfo implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    public static final String SearchPrefix = "data";
    @Schema(description = "实例Id")
    @CMDBProperty(searchType = PropertyTypeString.ID, searchPrefix = "_", isShow = true)
    @AutoId
    private String id;
    @Schema(description = "网关Id")
    @CMDBProperty(searchType = PropertyTypeString.ID, keywordSearch = true)
    private String gatewaySn;
    @Schema(description = "网关Ip")
    @CMDBProperty(searchType = PropertyTypeString.ID, keywordSearch = true)
    private String gatewayIp;
    @Schema(description = "模块区域")
    @CMDBProperty(searchType = PropertyTypeString.ID, keywordSearch = true)
    private String modelArea;
    //机柜信息
    private List<UManageInitDataCabinetPortInfo> data;
}
